#pragma once

#ifndef _CR_HTTP_COOKIES_H_
#define _CR_HTTP_COOKIES_H_

NS_CR_BEGIN

namespace http
{
	class Cookies
	{
	public:
		Cookies() {}
		Cookies(const _STD initializer_list<_STD pair<const string, string>>& pairs);
		Cookies(const _STD map<string, string>& map) 
			: map_( map ) 
		{}

		string& operator[](const string& key);
		string GetEncoded() const;
	private:
		_STD map<string, string> map_;
	};
}

NS_CR_END

#endif
